package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.po.Student;
import com.service.imp.student.StudentServiceImp;

@Controller
public class StudentController {
	
	private StudentServiceImp stuimp;
	
	@ResponseBody
	@RequestMapping(value="/test")
	public Student findStudent(@RequestBody Student student){
		
		System.out.print(student);
		Student stu = stuimp.findStudent(student.getStuid());
		
		return stu;
	}
	
}
